<!-- 子组件 FoodBusinessForm.vue -->
<template>
  <uni-forms label-position="top">
    <uni-title type="h2" title="企业信息录入" align="center"></uni-title>
    <uni-forms-item label="经营者名称" label-width="130" required>
      <uni-easyinput v-model="formData.operatorName" placeholder="请输入经营者名称" />
    </uni-forms-item>
    <uni-forms-item label="经营地址" required>
      <uni-easyinput v-model="formData.address" placeholder="请输入经营地址" />
    </uni-forms-item>
    <uni-forms-item label="受理号" required>
      <uni-easyinput v-model="formData.acceptNumber" placeholder="请输入受理号" />
    </uni-forms-item>
  
  </uni-forms>
</template>

<script>
export default {
  props: {
    formData: {
      type: Object,
      required: true
    }
  },
  methods: {
    submit() {
      this.$emit('submit', {
        operatorName: this.formData.operatorName,
        address: this.formData.address,
        acceptNumber: this.formData.acceptNumber
      })
    }
  }
}
</script>